import request from '@/utils/request'

export function getAnnoucementListByPage(data) {
  return request.get('/Annoucement/list', { params: data })
}

export function getAllAnnoucement(data) {
  return request.get('/Annoucements', data)
}

export function addAnnoucement(data) {
  return request.post('/Annoucement', data)
}

export function updateAnnoucement(data) {
  return request.put('/Annoucement', data)
}

export function deleteAnnoucement(id) {
  return request.delete('/Annoucement/' + id, id)
}
